package net.dgg.dggcloud.service.jrcrm.service.pro;

import net.dgg.dggcloud.core.minidao.hibernate.dao.IGenericBaseCommonDao;
import net.dgg.dggcloud.service.common.base.service.BaseService;
import net.dgg.dggcloud.service.jrcrm.dao.pro.ProductConditionDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/11/3.
 */
@Service
public class ProductConditionService extends BaseService {

    @Autowired
    private ProductConditionDao productConditionDao;

    @Resource(name = "miniDaoHiberCommonDao")
    protected IGenericBaseCommonDao repository;

    public void setProductConditionDao(ProductConditionDao productConditionDao) {
        this.productConditionDao = productConditionDao;
    }

    public void setRepository(IGenericBaseCommonDao repository) {
        this.repository = repository;
    }

    public List<Map> listProductConditionByProductId(Map map){
        return this.productConditionDao.listProductConditionByProductId(map);
    }
}
